package com.jinhongone.pattern.behavior.command;

import java.util.HashMap;
import java.util.Map;

/**
 * @author jinho
 * @className Order
 * @description 订单类 不是命令模式中的角色，是发起命令的具体需求
 * @date 2025/3/31 8:49
 */
public class Order {
    //座号
    private Integer diningTable;
    //食物集合：食物名称、份数
    private Map<String, Integer> foods = new HashMap<>();

    public Integer getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(Integer diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoods() {
        return foods;
    }

    public void setFood(String foodName, Integer foodNum) {
        this.foods.put(foodName, foodNum);
    }
}
